
Computes the sample skewness and sample kurtosis.
skewness(x, na.rm = FALSE)
kurtosis(x, na.rm = FALSE)
The skewness or kurtosis of x
.
A numeric vector containing the values whose skewness or kurtosis is to be computed.
A logical value indicating whether NA
values
should be stripped before the computation proceeds.
Evgenia Dimitriadou, Kurt Hornik, Friedrich Leisch, David Meyer, and Andreas Weingessel
If
If
x <- rnorm(100)
skewness(x)
kurtosis(x)
Run the code above in your browser using DataLab